<?php 
session_start();include "conn.php";
?>
<?php  include("admin.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> Bios 管理中心 </title>
<link href="../css/control.css" rel="stylesheet" type="text/css" />
</head>

<body>
<a name="top" id="top"></a>
<div id="all"><!--Wrap start //-->
<div id="main" class="clearfix"><!--main start //-->
<div id="top-1"><?php include_once('edit_top_btn.php');?>
</div>
<!--Content for  id "submenu" Goes Here //-->
<div id="submenu">
<?php include_once('edit_main_btn.php');?>
  </div>
 <!--Content for  id "contact" Goes Here //-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 <?PHP
 	$id=make_safe($_GET["id"]);	 
    $sql="select * from news where id='$id' order by id desc";			
	$result=mysql_query($sql);
	while ($row=mysql_fetch_object($result)){
?>
 <div id="contact-add">
   <table border="0" cellpadding="0" cellspacing="0" >
     <tr>
       <td>文章標題：
         <label for="textfield2"></label>
         <input name="title" type="text" class="contact_add-tit-keyin"  value="<?php echo $row->title;?>" /></td>
     </tr>
     <tr>
       <td><ul>
         <li>選擇分類：</li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           Flavor </li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           Trend </li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           Route </li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           Leisure </li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           Opinion</li>
       </ul></td>
     </tr>
     <tr>
       <td><ul>
         <li>第二分類：</li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           News</li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           Events</li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           Collection</li>
       </ul></td>
     </tr>
     <tr>
       <td><ul>
         <li>文章格式：</li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           橫圖較多格式</li>
         <li>
           <input type="checkbox" name="checkbox2" id="checkbox2" />
           <label for="checkbox2"></label>
           直圖格式</li>
       </ul></td>
     </tr>
   </table>
   <table border="0" cellpadding="0" cellspacing="0" >
   <tr>
     <td>新增圖片：     </td>
   </tr>
   <tr>
     <td  class="contact_add-upload">圖片1：
       <input name="images" type="file" size="50"  />
       <input type="hidden" name="hiddenField" />
       <img src="<?php echo $row->images;?>" width="52"  align="top" /></td>
   </tr>
   <tr>
     <td class="contact_add-upload">圖片2：
       <input name="images2" type="file" size="50"  />
       <img src="<?php echo $row->images2;?>" width="52"  align="top" /></td>
   </tr>
   <tr>
     <td class="contact_add-upload">圖片3：
       <input name="images3" type="file" size="50" />
	   <img src="<?php echo $row->images3;?>" width="52"  align="top" /></td>
   </tr>
   <tr>
     <td class="contact_add-upload">圖片4：
       <input name="images4" type="file" size="50"  />
       <img src="<?php echo $row->images4;?>" width="52"  align="top" /></td>
   </tr>
   <tr>
     <td class="contact_add-upload">圖片5：
       <input name="images5" type="file" size="50" />
	   <img src="<?php echo $row->images5;?>" width="52"  align="top" /></td>
   </tr>
   <tr>
     <td class="contact_add-upload">圖片6：
       <input name="images6" type="file" size="50"  />
	   <img src="<?php echo $row->images6;?>" width="52"  align="top" /></td>
   </tr>
 </table>
 <table border="0" cellpadding="0" cellspacing="0" >
   <tr>
     <td>編輯內容： </td>
   </tr>
   <tr>
     <td><?php 
include('../fckeditor/fckeditor.php');
	$oFCKeditor = new FCKeditor('FCKeditor1')  ; 
	$oFCKeditor->BasePath = '../fckeditor/' ;    
	$oFCKeditor->ToolbarSet = 'Default' ; 
	$oFCKeditor->InstanceName = 'content' ; 
	$oFCKeditor->Width = '100%' ; 
	$oFCKeditor->Height = '400' ; 
	//$oFCKeditor->Value  = $row['content']; 
	$oFCKeditor->Value  = $row->content; 
$oFCKeditor->Create();?></td>
   </tr>
  
 </table>
 <table border="0" cellpadding="0" cellspacing="0" >
   <tr>
     <td>編輯內容： </td>
   </tr>
   <tr>
     <td><img src="../images/html-edit.gif" width="800" height="309" /></td>
   </tr>
   <tr>
     <td><a href="#">新增分頁</a> / <a href="#">刪除分頁</a></td>
   </tr>
 </table>
 <table border="0" cellspacing="0" cellpadding="0" >
   <tr>
     <td>延伸閱讀選擇區塊：</td>
   </tr>
   <tr>
     <td><ul>
       <li>選擇分類：</li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         All</li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Random</li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Flavor </li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Trend </li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Route </li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Leisure </li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Opinion</li>
       </ul></td>
   </tr>
   <tr>
     <td><ul>
       <li>第二分類：</li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         News</li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Events</li>
       <li>
         <input type="checkbox" name="checkbox2" id="checkbox2" />
         <label for="checkbox2"></label>
         Collection</li>
     </ul></td>
   </tr>
   </table>
 <table border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td><a href="edit-main-no.php">編輯完成</a> / <a href="#">預覽文章</a></td>
  </tr>
</table>
 </div>
 <?php }?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 <!-- main end //-->
</div><!--Wrap end //-->
<div id="botton">
 <?php include_once('blog_botton_btn.php');?>
</div>
</body>
</html>
